



  <?php


session_start();

try
{
    $bdd = new PDO('mysql:host=localhost;dbname=sitemaeva', 'root', '');  /*connexion a la BDD*/
}
catch (Exception $e)
{
        die('Erreur : ' . $e->getMessage());
}

$query = $bdd->prepare('SELECT * FROM personnes WHERE id = :id');  
$query->bindValue(':id',$_GET['id']);
$query->execute();
$data = $query->fetch();






?>

<!DOCTYPE HTML>
<html>

<head>
  <title>Maeva Photographie</title>
  <meta name="description" content="website description" />
  <meta name="keywords" content="website keywords, website keywords" />
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <link rel="stylesheet" type="text/css" href="css/style.css" />

     <link rel="stylesheet" href="css/bootstrap.css">

        
        <!-- script pour effet lors du survol pour voir les commentaires-->
        <script src="js/vendor/jquery-1.11.0.min.js"></script>
        <script src="js/vendor/jquery.gmap3.min.js"></script>
        <script src="js/plugins.js"></script>
        <script src="js/main.js"></script>
   

  <!-- modernizr enables HTML5 elements and feature detects -->
  <script type="text/javascript" src="js/modernizr-1.5.min.js"></script>
</head>

<body>

  <div id="main">
    <header>
      <div id="logo"><div id="test" style="font-family:georgia;font-size:25px;" > Maeva Forestier <br></div><div id="test" style="font-family:impact;font-size:25px;"> Photographie </div></div>
<div id='cssmenu'>
<ul>
   <li><a href='index.php'><span>Présentation</span></a></li>
   <li class='active'><a href='femmes.php'><span>Modèles féminins</span></a></li>
   <li><a href='hommes.php'><span>Modèles Masculins</span></a></li>
   <li class='last'><a href='contact.php'><span>Contact</span></a></li>
</ul>
</div>
    </header>
  </div>

    <div id="site_content">
  <div id="bloc">
        </div>
<div id="latest-blog" style="padding-top:50px;">

  <div class="blocimage">
<?php echo '<img src="images/'.$data['photoPrincipale'].'" style="width:300px;height:400px;" />   ';?>

</div>

<div class="bloctexte">

  <?php echo '<h2>'.$data['nom']." ".$data['prenom'].'</h2>

   <p> Sexe : Homme </p>
   <p> Age : '.$data['age'].'  Ans</p>
   <p> Ville : '.$data['lieu'].' </p>
   <p> '.$data['com'].' </p>'




   ;?>




</div>

</div>

</div>

    <footer style="box-sizing:content-box;margin-top:40px;">
      <p>Maeva forestier photographie</p>
      <p>&copy; 2014 Tous droits réservés. </p>
    </footer>


  
</body>
</html>